package com.symone.webcms.common;

import java.util.HashMap;
import java.util.Map;

public interface Constants {
    /**
     * 前缀
     */
    String SYS_PREFIX = "sys_";
    /**
     * 用户信息头
     */
    String USER_HEADER = "x-user-header";

    /**
     * 角色信息头
     */
    String ROLE_HEADER = "x-role-header";
    /**
     * 项目的license
     */
    String CLOUD_LICENSE = "made by Symone Framework";
    /**
     * 基础角色 访客组
     */
    String BASE_ROLE = "visitor";

    /**
     * 默认生成图形验证码宽度
     */
    String DEFAULT_IMAGE_WIDTH = "100";

    /**
     * 默认生成图像验证码高度
     */
    String DEFAULT_IMAGE_HEIGHT = "40";

    /**
     * 默认生成图形验证码长度
     */
    String DEFAULT_IMAGE_LENGTH = "4";

    /**
     * 默认生成图形验证码过期时间
     */
    int DEFAULT_IMAGE_EXPIRE = 60;
    /**
     * 边框颜色，合法值： r,g,b (and optional alpha) 或者 white,black,blue.
     */
    String DEFAULT_COLOR_FONT = "black";

    /**
     * 图片边框
     */
    String DEFAULT_IMAGE_BORDER = "no";
    /**
     * 默认图片间隔
     */
    String DEFAULT_CHAR_SPACE = "5";

    /**
     * 默认保存code的前缀
     */
    String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY";
    /**
     * 验证码文字大小
     */
    String DEFAULT_IMAGE_FONT_SIZE = "30";

    /**
     * token-uservo
     */
    String CURRENT_USER_SESSION = "CURRENT_USER_SESSION";
    String CURRENT_USER_ROLES = "CURRENT_USER_ROLES";
    String CURRENT_MENU_LIST = "CURRENT_MENU_LIST";
    String CURRENT_USER_MENU_IDS = "CURRENT_USER_MENU_IDS";
    String CURRENT_PERMISSION_SESSION = "CURRENT_PERMISSION_SESSION";
    String CURRENT_LANGUAGE = "CURRENT_LANGUAGE";
    String FORM_CHECK_SESSION = "FORM_CHECK_SESSION";
    String SYS_LANGUAGE_LIST = "SYS_LANGUAGE_LIST";
    String SYS_MESSAGE_LIST = "SYS_MESSAGE_LIST";
    String SYS_NOTIFICATION_LIST = "SYS_NOTIFICATION_LIST";

    Map<String,String> modules = new HashMap<>();

}
